// out:  base.css,sourcemap: true, compress: false

@root-rem: 20rem;
@rem: @root-rem;
html, body {
    margin: auto;
    height: 100%;
    font-size: 20px;
}
body {
    max-width: 28rem;
    font-size: .75rem;
    position: relative;
    // line-height: .8rem;
}
* {
    box-sizing:border-box;
    -webkit-box-sizing:border-box;
}
a {
    TEXT-DECORATION: none;
}
a {
    color: #222;
}

.appearance(@value:none) {
    -webkit-appearance: @value;
    -moz-appearance: @value;
    -ms-appearance: @value;
    appearance: @value;
}
.transition(@attr) {
    -moz-transition: @arguments;
    -webkit-transition: @arguments;
    -o-transition: @arguments;
    transition: @arguments;
}

.border(@px, @solid, @color) {
    border: @px/@rem @solid @color;
}

.border-radius(@rad:2) {
    border-radius: @rad/@rem;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ellipsis-more(@line) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: @line;
    overflow: hidden;
}
.ellipsis-2 {
    .ellipsis-more(2);

}

.flex-box {
    display: flex;
}
.flex {
    flex: 1;
    // text-align: center;
}
.main {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    // background: rgba(0, 0, 0, 0.1);
    .herder {
    //   height: 50px;
    //   background: rgba(0, 0, 0, 0.1);
  
    }
    .content {
      flex: 1;
      overflow: auto;
    //   background: rgba(0, 0, 0, 0.2);
    }
    .footer {
    //   height: 50px;
    //   background: rgba(0, 0, 0, 0.3);
    }
  }
  .input {
    width: 100%;
    padding: 0 10/@rem;
    margin: 0;
    .border(1, solid, #ddd);
    .border-radius();
    line-height: 28/@rem;
    background: #FFF;
    &.input-line {
        .border-radius(0);
        border: 0;
    }
    &.input-lg {
        line-height: 38/@rem;
        height: 40/@rem;
    }
    outline:none;

}
.btn-type(@color1, @color2) {
    border-color: @color1;
    color: @color1;
    &:active {
        border-color: @color2;
        color: @color2;
    }
    &.btn-fill {
        color: #FFF;
        background: @color1;
        border: none;
        &:active {
            background: @color2;
        }
    }
}
.btn {
    outline:none;
    margin: 0;
    text-align: center;
    padding: 0 10/@rem;
    .border(1, solid, #0894ec);
    color: #0894ec;
    font-size: 14/@rem;
    .border-radius();
    line-height: 28/@rem;
    // height: 28/@rem;
    .appearance(none);
    background: none;
    .transition(all .1s);
    &:active {
        border-color: #0a8ddf;
        color: #0a8ddf;
    }
    &.btn-block {
        display: block;
        width: 100%;
    }
    &.btn-fill {
        color: #FFF;
        background: #0894ec;
        border: none;
        &:active {
            background: #0a8ddf;
        }
    }
    &.btn-shadow {
        .border(0, solid, #0894ec);
        box-shadow: 0 0 .05rem;
    }
    &.btn-success {
        .btn-type(#4cd964, #2ac845);
    }
    &.btn-danger {
        .btn-type(#f6383a, #f00b0d);
    }
    &.btn-warning {
        .btn-type(#ff6600, #cc5200);
    }
    &.btn-sm {
        font-size: 12/@rem;
        line-height: 24/@rem;
    }
    &.btn-lg {
        line-height: 38/@rem;
    }
}
.backgroundImage(@url) {
    background-image: @url;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.icon-svg {
    display: block;
    width: 20/@rem;
    height: 20/@rem;
    .backgroundImage('');
}

.item-line {
    padding: 5/@rem 0;
    position: relative;
    .flex-box;
    line-height: 28/@rem;
    background: #FFF;
    &:after {
        position: absolute;
        content: '';
        width: 100%;
        left: 0;
        bottom: 0;
        height: 1/@rem;
        background: #ddd;
        display: block;
        -webkit-transform-origin: 50% 100%;
        transform-origin: 50% 100%;
        transform: scaleY(.5);
    }
    .item-title {
        color: #666;
        padding: 0 10/@rem;
        text-align: right;
        width: 80/@rem;
    }
    .item-input {
        flex: 1;
    }
    &.item-lg {
        line-height: 38/@rem;
    }
}


.tab {
    .tab-header {
        .flex-box;
        line-height: 38/@rem;
        background: #FFF;

        .tab-link {
            margin: 0 5/@rem;
            text-align: center;
            flex: 1;
            &.tab-active {
                border-bottom: 1px solid #0894ec;
            }
        }
    }
    &.tab-toggle {
        .tab-content {
            display: none;
        }
        &.tab-toggle-show {
            .tab-content {
                display: block;
            }
        }
    }
    .tab-content {
        padding: 10/@rem;
        .tab-page {
            display: none;
            &.tab-active {
                display: block;
            }
        }
    }
    &.tab-touch {
        overflow:hidden;
        .tab-header {
            display: block;
            white-space: nowrap;
            word-break: keep-all;
            font-size: 0;
            .tab-link {
                display: inline-block;
                font-size: 14/@rem;
            }
        }
    }
}